package lancs.mobilemedia.core.ui.controller.commands;

import lancs.mobilemedia.core.ui.controller.AbstractController;
import lancs.mobilemedia.core.ui.controller.ControllerCommand;
import lancs.mobilemedia.core.ui.controller.ScreenSingleton;
import lancs.mobilemedia.core.ui.screens.AddPhotoToAlbum;
import lancs.mobilemedia.core.util.Constants;

public class AddPhoto implements ControllerCommand {

	public boolean execute(AbstractController controller) {
		ScreenSingleton.getInstance().setCurrentScreenName(Constants.ADDPHOTOTOALBUM_SCREEN);
		AddPhotoToAlbum form = new AddPhotoToAlbum("Add new Photo to Album");
		form.setCommandListener(controller);
		controller.setCurrentScreen(form);
		return true;
	}

}
